import {getAppAccessToken, getAccessToken, buildAuthUrl} from './getUserInfo.js';

// Use the function
const appId = 'cli_a52d26bb50f8d00c';
const appSecret = 'nR9kKgU5IB0Vry9mzKC8wgpdSjQxKyU5';

// Example usage
// getAppAccessToken(appId, appSecret).then(accessToken => {
//     console.log('Access Token:', accessToken);
//
//
// }).catch(error => {
//     console.error('Error fetching access token:', error);
// });

const redirectUri ='http://192.168.0.100:3000/'
console.log(buildAuthUrl(appId, redirectUri))

